package org.example.pattern.factory.config;

import cn.hutool.core.io.IoUtil;
import cn.hutool.core.util.IdUtil;
import cn.hutool.core.util.ReflectUtil;

import java.lang.reflect.Method;

/***
 * @Author zhangjg
 * @Description ClientTest
 * @Date 2021/9/18 上午10:43
 **/
public class ClientTest {
    public static void main(String[] args) throws Exception {

        IFactoryMethod iFactoryMethod = new FactoryMethod();

        String name = iFactoryMethod.getFruit(1).getName();

        System.out.println(name);

        name = iFactoryMethod.getFruit(2).getName();

        System.out.println(name);

    }
}
